package com.recive.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by zhouyangying on 2017/9/26.
 * 接收vxml提交过来参数
 */
@Controller
@RequestMapping("recive")
public class ReciveController {
    @RequestMapping("/test1")
    @ResponseBody
    public String test1(HttpServletRequest request){
        Map<String,String> parameterMap = request.getParameterMap();
        for (Map.Entry<String, String> e : parameterMap.entrySet()) {
            System.out.println(e.getKey()+":"+e.getValue());
        }
        return "success";
    }
}
